home *** CD-ROM | disk | FTP | other *** search
- Newsgroups: comp.lang.c
- Path: IVORY.trentu.ca!DPIDVERBNY
- From: dpidverbny@ivory.trentu.ca
- Subject: H-E-L-P!!!
- X-Nntp-Posting-Host: trentu.ca
- Message-ID: <DMGJvw.A0E@blaze.trentu.ca>
- Sender: news@blaze.trentu.ca (USENET News System)
- Reply-To: dpidverbny@ivory.trentu.ca
- Organization: Trent University, Peterborough
- Date: Thu, 8 Feb 1996 12:55:07 GMT
-
- I was hoping that someone here might be able to help me.
- I am trying to return a float from a function call to a C written DLL in
- Visual Basic. I have tested this code and it works fine with integers and
- longs but the minute I try to use a float, Visual Basic says that I have a
- bad calling convention. Visual Basic calls it floating point Single whereas
- C calls it float but both are 32-bit. C uses IEEE convention and I have no
- idea what VB uses.
- The other weird problem that I have run across is trying to pass a string
- from VB into a DLL. I have passed the string ByVal as the VB manual
- suggests. In my C DLL I can print the string and use string manipulation
- functions such as strlen(). However, the minute I try to use the string
- as a filename in fopen(), it doesn't work.
- Any help will appriciated. -Dan
-